import { request } from '@/utils/request.js'
export function apiGetBanner(){
	/* return uni.request({
		url:"https://tea.qingnian8.com/api/bizhi/homeBanner",
		header
	}) */
	
	return request({ url: '/homeBanner' })
}

export function apiGetDayRandom() {
	/* return uni.request({
		url:"https://tea.qingnian8.com/api/bizhi/randomWall",
		header
	}) */
	
	return request({ url: '/randomWall' })
}

export function apiGetNotice(data={}) {
	/* return uni.request({
		url:"https://tea.qingnian8.com/api/bizhi/wallNewsList",
		header
	}) */
	
	return request({
		url: '/wallNewsList',
		data
	})
}

export function apiGetClassify(data={}) {
	return request({
		url: '/classify',
		data
	})
}

export function apiGetClassList(data={}) {
	return request({
		url: '/wallList',
		data
	})
}

export function apiGetSetupScore(data={}) {
	return request({
		url: '/setupScore',
		data
	})
}

export function apiWriteDownload(data={}) {
	return request({
		url: '/downloadWall',
		data
	})
}

export function apiDetailWall(data={}) {
	return request({
		url: '/detailWall',
		data
	})
}

// 获取用户个人信息
export function apiGetUserInfo(data={}) {
	return request({
		url: '/userInfo',
		data
	})
}

// 我的评分/下载列表
export function apiGetHistoryList(data={}) {
	return request({
		url: '/userWallList',
		data
	})
}

// 公告详情
export function apiNoticeDetail(data={}) {
	return request({
		url: '/wallNewsDetail',
		data
	})
}

// 搜索壁纸
export function apiSearchData(data={}) {
	return request({
		url: '/searchWall',
		data
	})
}
